package msg;

public class MsgContent implements java.io.Serializable{
    static final long serialVersionUID = -1L;
    private String sender;
    private String receiver;
    private long date;
    private String content;

    public MsgContent(String s, String r, long d, String c){
        sender = s;
        receiver = r;
        date = d;
        content = c;
    }
    public void display(){
        System.out.println("Data: "+date);
        System.out.println("Wiadomosc od: "+sender+ ". Do: "+receiver);
    }
    /**
     * @return the sender
     */
    public String getSender() {
        return sender;
    }

    /**
     * @return the receiver
     */
    public String getReceiver() {
        return receiver;
    }

    /**
     * @return the date
     */
    public long getDate() {
        return date;
    }

    /**
     * @return the content
     */
    public String getContent() {
        return content;
    }
}